import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/muyu";

// 查询档案列表
export function archivesList() {
  return request({
    url: '/patient/archives/list',
    method: 'post'
  })
}

// 新增档案
export function addArchives(data) {
  return request({
    url: '/patient/archives/insertSysArchives',
    method: 'post',
    data: data
  })
}

// 编辑档案
export function updateUser(data) {
  return request({
    url: '/patient/archives/updateArchives',
    method: 'post',
    data: data
  })
}

// 查询用户详细
export function getArchives(data) {
  return request({
    url: '/patient/archives/selectInfoId/' + data,
    method: 'get'
  })
}

// 删除档案
export function delArchives(archiveId) {
  return request({
    url: '/patient/archives/remove/' + archiveId,
    method: 'get'
  })
}

// 查询关注列表
export function listFollow() {
  return request({
    url: '/patient/archives/followList',
    method: 'post'
  })
}

//取消关注
export function followRemove(data) {
  return request({
    url: '/patient/archives/removeFollow/' + data,
    method: 'get'
  })
}
